package com.starnet.yarnmonitor.yarn.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.sql.Timestamp;

@TableName("hdfs_upload_files")
@Data
public class FilesInHDFS {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField(value = "file_name")
    private String fileName;
    @TableField(value = "size")
    private Long size;
    @TableField(value = "path")
    private String path;
    @TableField(value = "replication")
    private Integer replication;
    @TableField(value = "is_encrypted")
    private boolean isEncrypted;
    @TableField(value = "is_erasure_coded")
    private boolean isErasureCoded;
    @TableField(value = "created_time")
    private Timestamp createdTime;
    @TableField(value = "user_id")
    private int userId;
}
